package com.pureut.production.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.pureut.production.domain.CutOrdersDocumentDetail;
import com.pureut.production.domain.dto.CutOrdersDocumentDetailDto;
import com.pureut.production.domain.dto.SubvolumeAndroidDto;
import com.pureut.production.domain.vo.CutOrdersDocumentDetailVo;
import com.pureut.production.domain.vo.SubvolumeAndroidVo;

import java.util.List;

/***
 * 分切制令单明细service
 * Author:C
 * Date:2023/02/16 16:14
 * @DESC
 */
public interface CutOrdersDocumentDetailService extends IService<CutOrdersDocumentDetail> {

    /**
     * 制令单明细列表
     */
    List<CutOrdersDocumentDetailDto> getList(String documentNum);

    /**
     * 新增
     */
    boolean add(CutOrdersDocumentDetailVo ctOrdersDocumentDetailVo);

    /**
     * 根据产品号码获取明细
     */
    CutOrdersDocumentDetailDto getView(String productNumber);

    /**
     * 手持pda 分卷
     */
    SubvolumeAndroidDto subvolumeAndroid(SubvolumeAndroidVo subvolumeAndroidVo) throws Exception;

    /**
     * 查询母卷是否分切
     * @param masterVolumeNumber
     * @return
     */
    CutOrdersDocumentDetailDto getCutOrdersDocumentInfo(String masterVolumeNumber);
}
